@import './palette';

.form-details {
  height: 100%;
  display: flex;
  flex-direction: column;
  border-left: 1px solid @main_border;
  .form-info {
    width: 100%;
    min-height: 50px;
    display: flex;
    background: white;
    border-bottom: 1px solid @main_border;
    .form-title {
      width: 200px;
      padding-left: 10px;
      padding-right: 20px;
    }
    .form-tools {
      flex: 1;
      display: flex;
      justify-content: flex-end;
      align-items: center;
      button {
        margin-right: 10px;
        height: 34px;
      }
    }
    .form-info-block {
      margin-left: 20px;
      padding: 5px 0;
    }
    h4 {
      line-height: 50px;
      margin: 0;
    }
    p {
      margin: 0;
    }
    ul {
      list-style-type: none;
      padding: 0;
      margin: 0;
      font-size: 12px;
      color: #666;
      li {
        line-height: 20px;
      }
      label {
        font-weight: bold;
        margin: 0;
      }
    }
  }
  .form-builder {
    display: flex;
    width: 100%;
    flex-grow: 1;
    overflow-x: hidden;
    overflow-y: auto;
    .form-pane {
      display: flex;
      flex-direction: column;
      overflow: hidden;
    }
    .form-pane-title {
      height: 30px;
      width: 100%;
      text-align: center;
      border-bottom: 1px solid @main_border;
      h5 {
        line-height: 30px;
        margin: 0;
      }
    }
    .form-pane-wrapper {
      height: 0px;
      flex: 1;
      padding: 20px;
      overflow-y: auto;
      background: white;
    }
    .form-pane-highlight {
      background: @bgblue;
    }
    .form-controls {
      width: 200px;
      border-right: 1px solid @main_border;
      button {
        width: 100%;
        margin-bottom: 10px;
      }
    }
    .form-preview {
      flex: 1;
      form {
        margin: 0 auto;
        background: #f0f0f0;
        border-radius: 5px;
        border: 1px solid @main_border;
        .field-wrap {
          &.active, &:hover {
            background: @main;
            color: white;
            cursor: pointer;
          }
        }
        .form-group {
          padding: 10px;
          margin: 0;
        }
        .form-counter {
          display: flex;
          flex-direction: row;
          .form-control-counter {
            width: auto;
          }
          .btn-form-counter {
            background: darken(@main, 10%);
            color: white;
            flex: 1;
          }
        }
      }
    }
    .form-options {
      width: 250px;
      border-left: 1px solid @main_border;
    }
  }
}